package com.bootdo.lgs.orderbind.dao;

import com.bootdo.lgs.orderbind.model.LgsOrderBind;
import com.bootdo.lgs.orderbind.model.OrderBindQuery;
import com.bootdo.lgs.orderbind.model.OrderBindUpdate;
import com.bootdo.lgs.orderbind.model.OrderBindUpload;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface OrderBindMapper {

	List<LgsOrderBind> getList(OrderBindQuery condition);

	int batchUpdateLgsNumber(List<OrderBindUpdate> condition);

	int cntLgsOrderWhenBind(OrderBindUpdate condition);

	int cntLgsOrderWhenUpdate(OrderBindUpdate condition);

	int updateLgsNumber(OrderBindUpdate condition);

	LgsOrderBind getById(Long orderId);

	int rollback(Map condition);

	int updateReceiptPic(OrderBindUpload condition);

	//int deleteReceiptPicRecord(Long orderId);

	int updateReceiptEmpty(Long orderId);

}
